-- GENERATED SPELL FOR [Centipaar Wasp] --


function spell0_5455(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5455', 30000, 1)
end

function spell1_5455(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5455', 610, 1)
end

function Sorts_5455(pUnit, Event)
local choix_sorts_5455 = math.random(0, 1)
if choix_sorts_5455 == 0 then
pUnit:RegisterEvent('spell0_5455', 1, 1)
end
if choix_sorts_5455 == 1 then
pUnit:RegisterEvent('spell1_5455', 1, 1)
end
end

function mob5455_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5455', math.random(1500, 3000), 1)
end

function mob5455_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5455_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5455_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5455, 1, 'mob5455_Action')
RegisterUnitEvent(5455, 2, 'mob5455_Leave')
RegisterUnitEvent(5455, 3, 'mob5455_Kill')
RegisterUnitEvent(5455, 4, 'mob5455_Die')
